<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE-edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>我的信息</title>
    <script src="./static/js/vue.global.js"></script>
  </head>
  <body>
    <div
      id="app"
      style="
        text-align: center;
        padding: 20px;
        width: 300px;
        margin: 0 auto;
        background-color: burlywood;
        border: 1px solid #ccc;
        border-radius: 20px;
      "
    >
      <div style="display: flex; flex-direction: column">
        <span>姓名：{{name}}</span>
        <span>年龄:{{age}}</span>
        <span>兴趣爱好：{{hobby}}</span>
        <span v-text="major"></span>
      </div>
      <div v-html="sign"></div>
    </div>
    <script>
      var App = {
        data() {
          return {
            name: "Hello Vue!",
            age: 18,
            hobby: "敲代码",
            major: "软件技术",
            sign: `<h2>我的个人世界</h2>
                        <a href="https://gitee.com/">点击进入我的Gitee</a>
                        <p style="color: red">我是一个小小程序员，用代码改变世界。</p>`,
          };
        },
      };
      Vue.createApp(App).mount("#app");
    </script>
  </body>
</html>
